package com.yn.xr.common.exception;

import com.yn.xr.common.constants.ExceptionErrorCodeDef;
import com.yn.xr.common.exception.base.BaseException;
import com.yn.xr.common.properties.PropertyConfig;
import com.yn.xr.common.util.StringUtils;

public class UserFundsException extends BaseException{

	/** */ 
	private static final long serialVersionUID = -2337388623271480621L;
	public UserFundsException() {
		super(ExceptionErrorCodeDef.userFundsError,PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.userFundsError)));
	}
	public UserFundsException(String errorMsg) {
		super(ExceptionErrorCodeDef.userFundsError,StringUtils.isEmpty(errorMsg)? PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.userFundsError)):errorMsg);
	}
	
}
